Any loadable module must define a public name pfxmversion, declared as follows:
Note the exact spelling of the variable; it is easy to overlook the letter "m" after the prefix. If the variable does not exist or is incorrectly spelled, an attempt to load the driver will fail.#include <sys/mload.h> char *pfxmversion = M_VERSION;